import request from '/@/utils/request';

export function getHolidayPage(query: Object) {
    return request({
        url: '/api/v1/system/holidays',
        method: 'get',
        params: query
    })
}

export function getHoliday(query: Object) {
    return request({
        url: '/api/v1/system/holiday/detail',
        method: 'get',
        params: query
    })
}

export function addHoliday(params?: Object) {
    return request({
        url: '/api/v1/system/holiday/add',
        method: 'post',
        data: params
    })
}

export function updateHoliday(params?: Object) {
    return request({
        url: '/api/v1/system/holiday/update',
        method: 'put',
        data: params
    })
}

export function deleteHoliday(params?: Object) {
    return request({
        url: '/api/v1/system/holiday/delete',
        method: 'delete',
        data: params
    })
}
